﻿<Window x:Class="BasicMVVMCommand.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
    <Grid>
    <Grid.RowDefinitions> 
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>

    <Grid.ColumnDefinitions> 
      <ColumnDefinition />
      <ColumnDefinition />   
    </Grid.ColumnDefinitions>
    <TextBlock Text="Login" HorizontalAlignment="Right" Margin="0,10,10,0" />
    <TextBlock Text="Password" HorizontalAlignment="Right" Margin="0,10,10,0" Grid.Row="1"/>
    <TextBox Text="{Binding User.Login}" Grid.Column="1"/>
    <TextBox Text="{Binding User.Password}" Grid.Column="1" Grid.Row="1"/>
    <Button Command="{Binding LoginCommand}" Grid.Row="2" Grid.ColumnSpan="2" Width="100" Content="Login" Margin="0,10,0,0"/> 
  </Grid>
</Window>
